package com.fanyouzhao.ehome.dao;

import com.fanyouzhao.ehome.entity.Cp;

import java.util.List;

/**
 * @Author: fanyouzhao
 * @Date: 9:55 2021/5/10
 */
public interface CpDao {

    Integer insert(Cp cp) throws Exception;

    List<Cp> selectAll() throws Exception;

    List<Cp> selectBypage(Integer page,Integer size) throws Exception;

    Cp selectById(Integer id) throws Exception;

    Integer update(Integer id,Cp cp) throws Exception;

    Integer deleteById(Integer id) throws Exception;

    Integer getCount() throws Exception;
}
